package birdry.sample
{

	import flash.events.Event;
	import flash.events.EventDispatcher;

	/**
	 * ...
	 * @author
	 */
	public class SampleDataModel extends EventDispatcher 	{

		//-------------------------------------------------------------------------------------//

		public static const TEXT:String = "text";

		public var value:Object;

		public function test(value:Object): void	{
			this.value = value;
			dispatchEvent( new Event( SampleDataModel.TEXT ));
		}

		//-------------------------------------------------------------------------------------//

		private static var _instance:SampleDataModel;

		public function SampleDataModel(singletonEnforcer:SingletonEnforcer): void	{
		}

		public static function get instance():SampleDataModel	{
			if (!_instance)	_instance = new SampleDataModel( new SingletonEnforcer() );
			return _instance;
		}

	}	// class

}	// package

class SingletonEnforcer	{}

